package com.codeoss.framework.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;

import com.codeoss.framework.request.LoginPageRequest;
import com.codeoss.framework.response.LoginPageResponse;
import com.codeoss.framework.service.ILoginPageService;

@Controller
@RequestMapping("loginpage")
public class LoginPageController {
	@Autowired
	private ILoginPageService devLoginPageService;
	
	@RequestMapping(value = "login", method = RequestMethod.POST)
	@ResponseBody
	public LoginPageResponse login(@RequestBody LoginPageRequest request){
		LoginPageResponse devLoginPageResponse=devLoginPageService.login(request);
		return devLoginPageResponse;
	}
}